package wjh.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import wjh.mapper.PlanMapper;
import wjh.pojo.Plan;
import wjh.pojo.PlanVo;

import java.util.List;

/**
 * 功能
 * 作者：lyh
 * 日期：2024/9/3 10:03
 */
@Service
public class PlanServiceImpl implements PlanService{
    @Autowired
    private PlanMapper planMapper;
    @Override
    public List<PlanVo> findAllPai() {
        return planMapper.findAllPai();
    }

    @Override
    public Plan findByIdAndWeek(Integer id, String week) {
        return planMapper.findByIdAndWeek(id,week);
    }

    @Override
    public List<PlanVo> findAllPaiLike(String likeName) {
        return planMapper.findAllPaiLike(likeName);
    }

    @Override
    public void delPaisById(int id) {
        planMapper.delPaisById(id);
    }

    @Override
    public Plan findPaiById(Integer id) {
        return planMapper.findPaiById(id);
    }
}
